package util;

import java.text.DateFormat;
import java.util.Date;
import java.util.Locale;


public class GetDateToday {

private Locale currentLocale;

public GetDateToday()
{
	super();
	this.currentLocale = new Locale("pt", "BR");
}

public GetDateToday(Locale locale) 
{
	super();
	this.currentLocale = locale;
}

// - Pega a data de hoje
public String getDateToday(int dateFormat) 
{
	Date today = new Date();
	DateFormat formatter;

	formatter = DateFormat.getDateInstance(dateFormat, currentLocale);
	return formatter.format(today);
}

//public static void main(String[] args) {
//GetDateToday hj = new GetDateToday(new Locale("en", "US"));
//System.out.println(hj.getDateToday(DateFormat.LONG));
//}
}  